<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>Icarous: /home/research133/Software/Icarous2/cFS/apps/logger/fsw/src/logger.c File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Icarous
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_c1698e121239b1aba7f6e782e4514e49.html">cFS</a></li><li class="navelem"><a class="el" href="dir_7ee4ce95da95d11e80a01c5101ed8d14.html">apps</a></li><li class="navelem"><a class="el" href="dir_52754df823868bbb4c3cca44cf22a590.html">logger</a></li><li class="navelem"><a class="el" href="dir_ca59f340bd116453d69a7d97e8b72878.html">fsw</a></li><li class="navelem"><a class="el" href="dir_5619f4fff33501a53867cfbac6daf1a3.html">src</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a> &#124;
<a href="#var-members">Variables</a>  </div>
  <div class="headertitle">
<div class="title">logger.c File Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>function definitions for logger app  
<a href="#details">More...</a></p>
<div class="textblock"><code>#include &lt;<a class="el" href="ardupilot__msg_8h_source.html">msgdef/ardupilot_msg.h</a>&gt;</code><br />
<code>#include &lt;cfe_time.h&gt;</code><br />
<code>#include &quot;<a class="el" href="logger_8h_source.html">logger.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="logger__table_8h_source.html">logger_table.h</a>&quot;</code><br />
<code>#include &quot;logger_tbl.c&quot;</code><br />
</div><div class="textblock"><div class="dynheader">
Include dependency graph for logger.c:</div>
<div class="dyncontent">
<div class="center"><img src="logger_8c__incl.png" border="0" usemap="#_2home_2research133_2Software_2Icarous2_2cFS_2apps_2logger_2fsw_2src_2logger_8c" alt=""/></div>
<map name="_2home_2research133_2Software_2Icarous2_2cFS_2apps_2logger_2fsw_2src_2logger_8c" id="_2home_2research133_2Software_2Icarous2_2cFS_2apps_2logger_2fsw_2src_2logger_8c">
<area shape="rect" id="node2" href="ardupilot__msg_8h.html" title="Ardupilot message definitions. " alt="" coords="132,184,293,211"/>
<area shape="rect" id="node8" href="logger_8h.html" title="function declarations, definitions of macros, datastructures and global variables for the logging app..." alt="" coords="623,109,691,136"/>
<area shape="rect" id="node16" href="logger__table_8h.html" title="Logger app table definition. " alt="" coords="5,184,108,211"/>
<area shape="rect" id="node15" href="ardupilot__msgids_8h.html" title="Message ID definition of ardupilot app messages. " alt="" coords="496,184,673,211"/>
</map>
</div>
</div><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:ae35cbb2e421a54668a717a9a3dd6c01a"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="logger_8c.html#ae35cbb2e421a54668a717a9a3dd6c01a">LOGGER_AppMain</a> (void)</td></tr>
<tr class="separator:ae35cbb2e421a54668a717a9a3dd6c01a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af0d3d4e8e36eab25bb17e3f2a6459d11"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="logger_8c.html#af0d3d4e8e36eab25bb17e3f2a6459d11">LOGGER_AppInit</a> (void)</td></tr>
<tr class="separator:af0d3d4e8e36eab25bb17e3f2a6459d11"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a481d6bfcb53b9e2a6c74fd20e9e6658c"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="logger_8c.html#a481d6bfcb53b9e2a6c74fd20e9e6658c">PrepareLogFiles</a> ()</td></tr>
<tr class="separator:a481d6bfcb53b9e2a6c74fd20e9e6658c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abffc386b87409ab3508148be10fcf82d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="logger_8c.html#abffc386b87409ab3508148be10fcf82d">OpenLogFiles</a> ()</td></tr>
<tr class="separator:abffc386b87409ab3508148be10fcf82d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adc7885d70472b4741c13b8eb5ac17270"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="logger_8c.html#adc7885d70472b4741c13b8eb5ac17270">SubscribeInputs</a> ()</td></tr>
<tr class="separator:adc7885d70472b4741c13b8eb5ac17270"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae183d873cc1d77eca115cdac6d8f6e3c"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="logger_8c.html#ae183d873cc1d77eca115cdac6d8f6e3c">LOGGER_AppCleanUp</a> ()</td></tr>
<tr class="separator:ae183d873cc1d77eca115cdac6d8f6e3c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9dcceceb516449ebc91388cf68ed802b"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="logger_8c.html#a9dcceceb516449ebc91388cf68ed802b">RecordPackets</a> ()</td></tr>
<tr class="separator:a9dcceceb516449ebc91388cf68ed802b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5224be8cf877124d7ab5531f836d8bb2"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="logger_8c.html#a5224be8cf877124d7ab5531f836d8bb2">LOGGER_ProcessPacket</a> (CFE_SB_Msg_t *sbMsg)</td></tr>
<tr class="separator:a5224be8cf877124d7ab5531f836d8bb2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8cb9880127780ef1cdee7a48d564d292"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="logger_8c.html#a8cb9880127780ef1cdee7a48d564d292">PlaybackPackets</a> ()</td></tr>
<tr class="separator:a8cb9880127780ef1cdee7a48d564d292"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8ae12d2d11111cfa310a985679c3eb52"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="logger_8c.html#a8ae12d2d11111cfa310a985679c3eb52">PublishSBMessage</a> (CFE_TIME_SysTime_t delLocal, CFE_SB_Msg_t *msg)</td></tr>
<tr class="separator:a8ae12d2d11111cfa310a985679c3eb52"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac0f640abc3cbfd909d9d4412b4e6554a"><td class="memItemLeft" align="right" valign="top">int32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="logger_8c.html#ac0f640abc3cbfd909d9d4412b4e6554a">LoggerTableValidationFunc</a> (void *TblPtr)</td></tr>
<tr class="separator:ac0f640abc3cbfd909d9d4412b4e6554a"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="var-members"></a>
Variables</h2></td></tr>
<tr class="memitem:ad663833184a2d9f1576de7a5e5751154"><td class="memItemLeft" align="right" valign="top">CFE_EVS_BinFilter_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="logger_8c.html#ad663833184a2d9f1576de7a5e5751154">LOGGER_EventFilters</a> []</td></tr>
<tr class="memdesc:ad663833184a2d9f1576de7a5e5751154"><td class="mdescLeft">&#160;</td><td class="mdescRight">Event filter definition for logger.  <a href="#ad663833184a2d9f1576de7a5e5751154">More...</a><br /></td></tr>
<tr class="separator:ad663833184a2d9f1576de7a5e5751154"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>function definitions for logger app </p>
</div><h2 class="groupheader">Function Documentation</h2>
<a class="anchor" id="ae183d873cc1d77eca115cdac6d8f6e3c"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void LOGGER_AppCleanUp </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Clean up variables </p>

</div>
</div>
<a class="anchor" id="af0d3d4e8e36eab25bb17e3f2a6459d11"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void LOGGER_AppInit </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Initialize app properties </p>

</div>
</div>
<a class="anchor" id="ae35cbb2e421a54668a717a9a3dd6c01a"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void LOGGER_AppMain </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Entry point for app </p>

</div>
</div>
<a class="anchor" id="a5224be8cf877124d7ab5531f836d8bb2"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void LOGGER_ProcessPacket </td>
          <td>(</td>
          <td class="paramtype">CFE_SB_Msg_t *&#160;</td>
          <td class="paramname"><em>msg</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Process incoming packets </p>

</div>
</div>
<a class="anchor" id="ac0f640abc3cbfd909d9d4412b4e6554a"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int32_t LoggerTableValidationFunc </td>
          <td>(</td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Validate table inputs </p>

</div>
</div>
<a class="anchor" id="abffc386b87409ab3508148be10fcf82d"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void OpenLogFiles </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Open log files for reading </p>

</div>
</div>
<a class="anchor" id="a8cb9880127780ef1cdee7a48d564d292"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void PlaybackPackets </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Play back logged SB messages </p>

</div>
</div>
<a class="anchor" id="a481d6bfcb53b9e2a6c74fd20e9e6658c"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void PrepareLogFiles </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Open log files for writing SB Messages </p>

</div>
</div>
<a class="anchor" id="a8ae12d2d11111cfa310a985679c3eb52"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool PublishSBMessage </td>
          <td>(</td>
          <td class="paramtype">CFE_TIME_SysTime_t&#160;</td>
          <td class="paramname"><em>delLocal</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">CFE_SB_Msg_t *&#160;</td>
          <td class="paramname"><em>msg</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Drop the given SB message when the delLocal is greater than delMessage </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">delLocal</td><td>time elapsed </td></tr>
    <tr><td class="paramname">msg</td><td>logged SB message to publish </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>ture if sent/ false if not sent because of time constraint. </dd></dl>

</div>
</div>
<a class="anchor" id="a9dcceceb516449ebc91388cf68ed802b"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void RecordPackets </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Record received SB messages to corresponding log files </p>

</div>
</div>
<a class="anchor" id="adc7885d70472b4741c13b8eb5ac17270"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SubscribeInputs </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Subscribe to all plexil inputs </p>

</div>
</div>
<h2 class="groupheader">Variable Documentation</h2>
<a class="anchor" id="ad663833184a2d9f1576de7a5e5751154"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">CFE_EVS_BinFilter_t LOGGER_EventFilters[]</td>
        </tr>
      </table>
</div><div class="memdoc">
<b>Initial value:</b><div class="fragment"><div class="line">=</div><div class="line">{  </div><div class="line">        { 0 ,       0x0000},</div><div class="line">        { 1 ,       0x0000},</div><div class="line">}</div></div><!-- fragment -->
<p>Event filter definition for logger. </p>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.11
</small></address>
</body>
</html>
